package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.resp.GeGuMsg;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* @author 85190
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2022-02-12 15:54:06
* @Entity com.itheima.stock.pojo.StockBusiness
*/
public interface StockBusinessMapper {
    // 查询所有股票的主营业务
    List<StockBusiness> getAll();

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    /**
     * 个股描述功能mapper层代码
     * @param code
     * @return vo包下GeGuMsg实体类接收查询数据
     */
    GeGuMsg selectGeGuMsg(Integer code);
    List<Map> getSerchStr(String searchStr);
}
